package net.csdra.wenhua.nanan.qiandao.domain;

import org.springframework.data.jpa.repository.JpaRepository;

import java.sql.Timestamp;
import java.util.List;


/**
 * Created by xiaomi on 2017/2/20.
 */
public interface CheckInRepository extends JpaRepository<CheckIn, String> {

    List<CheckIn> findByUserIdOrderByCheckInTimeDesc(String userId);

    List<CheckIn> findByUserIdAndCheckInTimeAfter(String userId, Timestamp after);
}
